<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	/**
	* Removing Application_ prefix from class names
	*/
	protected function _initAppAutoload(){
		$moduleLoad = new Zend_Application_Module_Autoloader(array(
			'namespace' => '',
			'basePath' => APPLICATION_PATH
		));
	}
	
	protected function _initUserAcces(){
		$acl = new Torrent_Acl();
		
		$fc = Zend_Controller_Front::getInstance();
		$fc->registerPlugin(new Plugin_UserAccess($acl));
	}
	
	protected function _initSiteConfig(){
		$config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/main.ini');
		
		Zend_Registry::set('config', $config);
	}
	
	protected function _initActionHelpers(){
		Zend_Controller_Action_HelperBroker::addHelper(
			new App_Controller_Action_Helper_Flash()
		);
	}

}

